package cn.com.cabinet.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cabinet.web.entity.CabinetApplication;

import cn.com.cabinet.dao.CabinetApplicationDao;

@Service
public class CabinetApplicationServiceImpl {
	
	@Autowired
	private CabinetApplicationDao cabinetApplicationDao;
	
	public CabinetApplication getCabinetApplicationByCidAndSid(String cId,Long sellerId){
		return cabinetApplicationDao.getCabinetApplicationByCidAndSid(cId, sellerId);
		
	}
	
	public void addCabinetApplication(CabinetApplication cap){
		cabinetApplicationDao.save(cap);
	}

}
